package com.BlogPark.mapper;

import com.BlogPark.pojo.Feedback;
import org.springframework.stereotype.Component;

import java.util.List;

/**
 * @Auther: 业峰
 * @Date: 2022/8/19 - 08 - 19 - 20:19
 * @version: 1.0
 */
@Component
public interface FeedbackMapper {

    //添加反馈
    public int addFeedback(Feedback feedback);

    //按时间查询所有反馈
    public List<Feedback> showFeedback();

    //删除对应id的反馈
    public int deleteFeedback(Integer id);

    //根据用户id查询对应用户所有id
    public List<Feedback> showFeedbackByUserId(Integer userId);
}
